<%@ Page Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true"
    CodeFile="shipment-cost-add.aspx.cs" Inherits="admin_shipment_cost_add" Title="Untitled Page" %>

<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register Src="~/controls/wucAdminValidator.ascx" TagName="AdminValidator" TagPrefix="wuc" %>
<asp:Content ID="cntMiddleContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <div class="admin-function-top">
        <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
            DisplayMode="BulletList" ShowMessageBox="true" HeaderText="Please correct the following:"
            CssClass="adminValidator" Width="390px" />
        <fieldset>
            <label>
                Price Range From</label>
            <asp:TextBox ID="tbxWeightRangeFrom" runat="server" CssClass="text" Width="100px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxWeightRangeFrom"
                ErrorMessage="Weight Range From is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true" Width="1px">
                <wuc:AdminValidator ID="AdminValidator2" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" ControlToValidate="tbxWeightRangeFrom"
                EnableClientScript="true" ErrorMessage="Incorrect Weight Format" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="AdminValidator3" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Price Range To</label>
            <asp:TextBox ID="tbxWeightRangeTo" runat="server" CssClass="text" Width="100px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxWeightRangeTo"
                ErrorMessage="Weight Range To is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true" Width="1px">
                <wuc:AdminValidator ID="AdminValidator4" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator2" ControlToValidate="tbxWeightRangeTo"
                EnableClientScript="true" ErrorMessage="Incorrect Weight Format" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="AdminValidator5" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
             <label>
                Ground</label>
            <asp:TextBox ID="tbxGroundShippingCost" runat="server" CssClass="text" Width="100px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbxStandardShippingCost"
                ErrorMessage="Ground Shipping Cost is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true" Width="1px">
                <wuc:AdminValidator ID="AdminValidator6" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator3" ControlToValidate="tbxGroundShippingCost"
                EnableClientScript="true" 
                SetFocusOnError="true" ErrorMessage="<%$ Code:ECommerce.Library.RegExUtil.DecimalFormatError %>" ValidationExpression="<%$ Code:ECommerce.Library.RegExUtil.DecimalFormat %>">
                <wuc:AdminValidator ID="AdminValidator7" runat="server" />
            </asp:RegularExpressionValidator>
            <br />

            <label>
                3 Day Select</label>
            <asp:TextBox ID="tbxStandardShippingCost" runat="server" CssClass="text" Width="100px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbxStandardShippingCost"
                ErrorMessage="Standard Shipping Cost is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true" Width="1px">
                <wuc:AdminValidator ID="AdminValidator8" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator4" ControlToValidate="tbxStandardShippingCost"
                EnableClientScript="true" SetFocusOnError="true" ErrorMessage="<%$ Code:ECommerce.Library.RegExUtil.DecimalFormatError %>" ValidationExpression="<%$ Code:ECommerce.Library.RegExUtil.DecimalFormat %>">
                <wuc:AdminValidator ID="AdminValidator9" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                2nd Day Air</label>
            <asp:TextBox ID="tbxExpressShippingCost" runat="server" CssClass="text" Width="100px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbxExpressShippingCost"
                ErrorMessage="Express Shipping Cost is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true" Width="1px">
                <wuc:AdminValidator ID="AdminValidator10" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator5" ControlToValidate="tbxExpressShippingCost"
                EnableClientScript="true" SetFocusOnError="true" ErrorMessage="<%$ Code:ECommerce.Library.RegExUtil.DecimalFormatError %>" ValidationExpression="<%$ Code:ECommerce.Library.RegExUtil.DecimalFormat %>">
                <wuc:AdminValidator ID="AdminValidator11" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
               Next Day Air</label>
            <asp:TextBox ID="tbxOvernightShippingCost" runat="server" CssClass="text" Width="100px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="tbxOvernightShippingCost"
                ErrorMessage="Overnight Shipping Cost is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true" Width="1px">
                <wuc:AdminValidator ID="AdminValidator1" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator6" ControlToValidate="tbxOvernightShippingCost"
                EnableClientScript="true" SetFocusOnError="true" ErrorMessage="<%$ Code:ECommerce.Library.RegExUtil.DecimalFormatError %>" ValidationExpression="<%$ Code:ECommerce.Library.RegExUtil.DecimalFormat %>">
                <wuc:AdminValidator ID="Validator28" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Active</label>
            <asp:CheckBox ID="cbxIsActive" runat="server" />
            <br />
              <label>
                Is Percentage</label>
            <asp:CheckBox ID="cbxPercentage" runat="server" />
            <br />
            <div class="btn-place-holder">
                <asp:Button ID="imgSaveBottom" runat="server" CssClass="btn-regular" Text="Save"
                    AlternateText=" " Width="49px" Height="25px" OnClick="Create_Click" />
            </div>
        </fieldset>
        <br class="clear" />
    </div>
    <br class="clear" />
</asp:Content>
